<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeBehind="ByCountry.aspx.cs" Inherits="www.Search_ByCountry" %>

<%@ Register Assembly="NBusiness" Namespace="NBusiness.Data.Web" TagPrefix="cc1" %>

<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="contentPlaceHolder1">
    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="CountryDataSource"
        DataTextField="Name" DataValueField="CountryId" OnDataBound="DropDownList1_DataBound">
    </asp:DropDownList>
    <asp:Button ID="Button1" runat="server" Text="Go" OnClick="Button1_Click" />
    <cc1:entitydatasource id="CountryDataSource" runat="server" 
        assemblyname="Example.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
        typename="BeerBase.Business.CachedCountryCollection" OnSelect="CountryDataSource_Select">
    </cc1:entitydatasource>
    <ul>
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="RegionDataSource" OnItemDataBound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <li>
                    <asp:HyperLink ID="RegionLabel" runat="server" Text="Country Name" />
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
    <cc1:entitydatasource id="RegionDataSource" runat="server" 
        assemblyname="Example.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
        typename="BeerBase.Business.RegionCollection" 
        OnSelect="RegionDataSource_Select">
    </cc1:entitydatasource>
</asp:Content>